﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D73 RID: 3443
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PunkLordBattleAvatar : IMessage<PunkLordBattleAvatar>, IMessage, IEquatable<PunkLordBattleAvatar>, IDeepCloneable<PunkLordBattleAvatar>, IBufferMessage
	{
		// Token: 0x17002BAB RID: 11179
		// (get) Token: 0x06009A76 RID: 39542 RVA: 0x0019CB08 File Offset: 0x0019AD08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PunkLordBattleAvatar> Parser
		{
			get
			{
				return PunkLordBattleAvatar._parser;
			}
		}

		// Token: 0x17002BAC RID: 11180
		// (get) Token: 0x06009A77 RID: 39543 RVA: 0x0019CB0F File Offset: 0x0019AD0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PunkLordBattleAvatarReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002BAD RID: 11181
		// (get) Token: 0x06009A78 RID: 39544 RVA: 0x0019CB21 File Offset: 0x0019AD21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PunkLordBattleAvatar.Descriptor;
			}
		}

		// Token: 0x06009A79 RID: 39545 RVA: 0x0019CB28 File Offset: 0x0019AD28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleAvatar()
		{
		}

		// Token: 0x06009A7A RID: 39546 RVA: 0x0019CB30 File Offset: 0x0019AD30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleAvatar(PunkLordBattleAvatar other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.avatarLevel_ = other.avatarLevel_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009A7B RID: 39547 RVA: 0x0019CB61 File Offset: 0x0019AD61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleAvatar Clone()
		{
			return new PunkLordBattleAvatar(this);
		}

		// Token: 0x17002BAE RID: 11182
		// (get) Token: 0x06009A7C RID: 39548 RVA: 0x0019CB69 File Offset: 0x0019AD69
		// (set) Token: 0x06009A7D RID: 39549 RVA: 0x0019CB71 File Offset: 0x0019AD71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17002BAF RID: 11183
		// (get) Token: 0x06009A7E RID: 39550 RVA: 0x0019CB7A File Offset: 0x0019AD7A
		// (set) Token: 0x06009A7F RID: 39551 RVA: 0x0019CB82 File Offset: 0x0019AD82
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarLevel
		{
			get
			{
				return this.avatarLevel_;
			}
			set
			{
				this.avatarLevel_ = value;
			}
		}

		// Token: 0x06009A80 RID: 39552 RVA: 0x0019CB8B File Offset: 0x0019AD8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PunkLordBattleAvatar);
		}

		// Token: 0x06009A81 RID: 39553 RVA: 0x0019CB99 File Offset: 0x0019AD99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PunkLordBattleAvatar other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.AvatarLevel == other.AvatarLevel && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009A82 RID: 39554 RVA: 0x0019CBD8 File Offset: 0x0019ADD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.AvatarLevel != 0U)
			{
				num ^= this.AvatarLevel.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009A83 RID: 39555 RVA: 0x0019CC30 File Offset: 0x0019AE30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009A84 RID: 39556 RVA: 0x0019CC38 File Offset: 0x0019AE38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009A85 RID: 39557 RVA: 0x0019CC44 File Offset: 0x0019AE44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.AvatarLevel != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.AvatarLevel);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009A86 RID: 39558 RVA: 0x0019CC9C File Offset: 0x0019AE9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.AvatarLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarLevel);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009A87 RID: 39559 RVA: 0x0019CCF4 File Offset: 0x0019AEF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PunkLordBattleAvatar other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.AvatarLevel != 0U)
			{
				this.AvatarLevel = other.AvatarLevel;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009A88 RID: 39560 RVA: 0x0019CD44 File Offset: 0x0019AF44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009A89 RID: 39561 RVA: 0x0019CD50 File Offset: 0x0019AF50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarLevel = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003B7D RID: 15229
		private static readonly MessageParser<PunkLordBattleAvatar> _parser = new MessageParser<PunkLordBattleAvatar>(() => new PunkLordBattleAvatar());

		// Token: 0x04003B7E RID: 15230
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003B7F RID: 15231
		public const int AvatarIdFieldNumber = 1;

		// Token: 0x04003B80 RID: 15232
		private uint avatarId_;

		// Token: 0x04003B81 RID: 15233
		public const int AvatarLevelFieldNumber = 2;

		// Token: 0x04003B82 RID: 15234
		private uint avatarLevel_;
	}
}
